約 2,529,150 件
https://w.atwiki.jp/ohden/pages/698.html
install(Windows) Windows 7-64bit Professional SQLite 更新日: 2015年03月18日 (水) 10時26分00秒 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/hoshiba3/pages/140.html
SQLite3 JDBC Driver for Mysaifu JVM ダウンロードページ #blogsearch #blogsearch2
https://w.atwiki.jp/m_shige1979/pages/1498.html
gemでインストール ダウンロード http //www.sqlite.org/download.htmlよりsqlite-autoconf-3071602.tar.gzをダウンロード 任意のディレクトリへ解凍する 手順 c \ set PATH=%PATH%;C \Ruby200-x64\DevKit\bin;C \Ruby200-x64\DevKit\mingw\bin c \ bash bash-3.1$ cd C /Ruby200-x64/sqlite-autoconf-3071602 bash-3.1$ pwd /c/Ruby200-x64/sqlite-autoconf-3071602 bash-3.1$ ./configure --prefix=D /Tools/sqlite3 bash-3.1$ make bash-3.1$ mkdir D /Tools/sqlite3 bash-3.1$ make install bash-3.1$ cp D /Tools/sqlite3/bin/* C /Ruby200-x64/bin bash-3.1$ exit c \ gem install sqlite3 -- --platform=ruby --with-opt-include="D /Tools/sqlite3/include" --with-opt-lib="D /Tools/sqlite3/lib" 設定ログ c \ set PATH=%PATH%;C \Ruby200-x64\DevKit\bin;C \Ruby200-x64\DevKit\mingw\bin c \ bash bash-3.1$ cd C \Ruby200-x64\sqlite-autoconf-3071602 bash cd C Ruby200-x64sqlite-autoconf-3071602 No such file or directory bash-3.1$ cd C /Ruby200-x64/sqlite-autoconf-3071602 bash-3.1$ pwd /c/Ruby200-x64/sqlite-autoconf-3071602 bash-3.1$ ./configure --prefix=D /Tools/sqlite3 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for ranlib... ranlib checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by gcc... c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe checking if the linker (c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes checking for c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r checking for BSD-compatible nm... /usr/mingw/bin/nm checking whether ln -s works... no, using cp -pR checking how to recognise dependent libraries... file_magic file format pei*-i386(.*architecture i386)? checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... no checking dlfcn.h presence... no checking for dlfcn.h... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking the maximum length of command line arguments... 8192 checking command to parse /usr/mingw/bin/nm output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... (cached) ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -DDLL_EXPORT checking if gcc PIC flag -DDLL_EXPORT works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe checking if the linker (c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes checking whether the g++ linker (c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes checking for g++ option to produce PIC... -DDLL_EXPORT checking if g++ PIC flag -DDLL_EXPORT works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gfortran option to produce PIC... -DDLL_EXPORT checking if gfortran PIC flag -DDLL_EXPORT works... yes checking if gfortran static flag -static works... yes checking if gfortran supports -c -o file.o... yes checking whether the gfortran linker (c /ruby200-x64/devkit/mingw/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for fdatasync... no checking for usleep... yes checking for fullfsync... no checking for localtime_r... no checking for gmtime_r... no checking whether strerror_r is declared... no checking for strerror_r... no checking whether strerror_r returns char *... no checking for library containing tgetent... no checking for library containing readline... no checking for readline... no checking for library containing pthread_create... -lpthread checking for library containing dlopen... no checking for whether to support dynamic extensions... yes checking for posix_fallocate... no configure creating ./config.status config.status creating Makefile config.status creating sqlite3.pc config.status executing depfiles commands bash-3.1$ bash-3.1$ make if /bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.16.2\" -DPAC KAGE_STRING=\"sqlite\ 3.7.16.2\" -DPACKAGE_BUGREPORT=\"http //www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.16.2\ " -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DH AVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_USLEEP=1 -DHAVE_DECL_STRERROR_R=0 -I. -I. -D_REENTRANT=1 - DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 -MT sqlite3.lo -MD -MP -MF ".deps/sqlite3.Tpo" -c -o sqlite3.lo sqli te3.c; \ then mv -f ".deps/sqlite3.Tpo" ".deps/sqlite3.Plo"; else rm -f ".deps/sqlite3.Tpo"; exit 1; fi mkdir .libs gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.16.2\" "-DPACKAGE_STRING=\"sqlite 3.7.16.2\"" -DPACKAGE_ BUGREPORT=\"http //www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.16.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 - DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_USLEEP=1 -DHAVE_DECL_STRERROR_R=0 -I. -I. -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQ LITE_ENABLE_RTREE -g -O2 -MT sqlite3.lo -MD -MP -MF .deps/sqlite3.Tpo -c sqlite3.c -DDLL_EXPORT -DPIC -o .libs/sqlite3.o gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.16.2\" "-DPACKAGE_STRING=\"sqlite 3.7.16.2\"" -DPACKAGE_ BUGREPORT=\"http //www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.16.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 - DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_USLEEP=1 -DHAVE_DECL_STRERROR_R=0 -I. -I. -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQ LITE_ENABLE_RTREE -g -O2 -MT sqlite3.lo -MD -MP -MF .deps/sqlite3.Tpo -c sqlite3.c -o sqlite3.o /dev/null 2 1 /bin/sh ./libtool --tag=CC --mode=link gcc -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 -o libs qlite3.la -rpath D /Tools/sqlite3/lib -no-undefined -version-info 8 6 8 sqlite3.lo -lpthread *** Warning linker path does not have real file for library -lpthread. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libpthread and none of the candidates passed a file format test *** using a file magic. Last file checked c /ruby200-x64/devkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw3 2/lib//libpthread.dll.a *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. *** Since this library must not contain undefined symbols, *** because either the platform does not support them or *** it was explicitly requested with -no-undefined, *** libtool will only create a static version of it. copying selected object files to avoid basename conflicts... rm -fr .libs/libsqlite3.lax mkdir .libs/libsqlite3.lax ar cru .libs/libsqlite3.a sqlite3.o ranlib .libs/libsqlite3.a rm -fr .libs/libsqlite3.lax creating libsqlite3.la (cd .libs rm -f libsqlite3.la cp -pR ../libsqlite3.la libsqlite3.la) if gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.16.2\" -DPACKAGE_STRING=\"sqlite\ 3.7.16.2\" -DPACKAGE _BUGREPORT=\"http //www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.16.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE _STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_USLEEP=1 -DHAVE_DECL_STRERROR_R=0 -I. -I. -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 -MT shell.o -MD -MP -MF ".deps/shell.Tpo" -c -o shell.o shell.c; \ then mv -f ".deps/shell.Tpo" ".deps/shell.Po"; else rm -f ".deps/shell.Tpo"; exit 1; fi /bin/sh ./libtool --tag=CC --mode=link gcc -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 -o sqli te3.exe shell.o ./libsqlite3.la -lpthread gcc -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -g -O2 -o sqlite3.exe shell.o ./.libs/libsqlite3.a -lpt hread bash-3.1$ bash-3.1$ make install make[1] Entering directory `/c/Ruby200-x64/sqlite-autoconf-3071602 test -z "D /Tools/sqlite3/lib" || mkdir -p -- "D /Tools/sqlite3/lib" /bin/sh ./libtool --mode=install /usr/bin/install -c libsqlite3.la D /Tools/sqlite3/lib/libsqlite3.la /usr/bin/install -c .libs/libsqlite3.lai D /Tools/sqlite3/lib/libsqlite3.la /usr/bin/install -c .libs/libsqlite3.a D /Tools/sqlite3/lib/libsqlite3.a chmod 644 D /Tools/sqlite3/lib/libsqlite3.a ranlib D /Tools/sqlite3/lib/libsqlite3.a ---------------------------------------------------------------------- Libraries have been installed in D /Tools/sqlite3/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR flag during linking and do at least one of the following - add LIBDIR to the `PATH environment variable during execution - add LIBDIR to the `LD_RUN_PATH environment variable during linking - use the `-LLIBDIR linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- test -z "D /Tools/sqlite3/bin" || mkdir -p -- "D /Tools/sqlite3/bin" /bin/sh ./libtool --mode=install /usr/bin/install -c sqlite3.exe D /Tools/sqlite3/bin/sqlite3.exe /usr/bin/install -c sqlite3.exe D /Tools/sqlite3/bin/sqlite3.exe test -z "D /Tools/sqlite3/include" || mkdir -p -- "D /Tools/sqlite3/include" /usr/bin/install -c -m 644 sqlite3.h D /Tools/sqlite3/include/sqlite3.h /usr/bin/install -c -m 644 sqlite3ext.h D /Tools/sqlite3/include/sqlite3ext.h test -z "D /Tools/sqlite3/share/man/man1" || mkdir -p -- "D /Tools/sqlite3/share/man/man1" /usr/bin/install -c -m 644 ./sqlite3.1 D /Tools/sqlite3/share/man/man1/sqlite3.1 test -z "D /Tools/sqlite3/lib/pkgconfig" || mkdir -p -- "D /Tools/sqlite3/lib/pkgconfig" /usr/bin/install -c -m 644 sqlite3.pc D /Tools/sqlite3/lib/pkgconfig/sqlite3.pc make[1] Leaving directory `/c/Ruby200-x64/sqlite-autoconf-3071602 bash-3.1$ bash-3.1$ cp D /Tools/sqlite3/bin/* C /Ruby200-x64/bin bash-3.1$ exit c \ gem install sqlite3 -- --platform=ruby --with-opt-include="D /Tools/sqlite3/include" --with-opt-lib="D /Tools/sqlite3/lib" Temporarily enhancing PATH to include DevKit... Building native extensions with --platform=ruby --with-opt-include=D /Tools/sqlite3/include --with-opt-lib=D /Tools/sqlite3/lib This could take a while... Successfully installed sqlite3-1.3.7 Parsing documentation for sqlite3-1.3.7 unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/sqlite3/sqlite3_native.so, skipping Installing ri documentation for sqlite3-1.3.7 1 gem installed c \ c \ ruby -e "require sqlite3 " c \
https://w.atwiki.jp/myfavoritepcsettings/pages/176.html
目次 ↑ 概要 URL 設定 類似アドオン タグ 概要 FirefoxのSQLiteデータベースを最適化し、起動を高速化する URL https //addons.mozilla.org/ja/firefox/addon/11198/ 設定 お好みで 類似アドオン Vaccum Places タグ @自宅
https://w.atwiki.jp/irukakiss/pages/70.html
自宅サーバー・Apche・PHP・PDO・SQLite環境での文字コードは結局UTF-8 Shift-Jisでがんばった。きっとできると信じてやってきた。ずっとマイクロソフトのお世話になってきた。それでなんとかやってきたんだから、今度の壁も乗り越えられる。大丈夫だと思っていた。多分、乗り越える方法はどこかにあるのだろう。しかし、それを見つける根気がない。 Amigoデータベースでカクテルのデータベースをつくり、SQLiteに移植してきた。いろいろと困難はあったがなんとかできた。そう思っていた。99%までできた。しかし、最後の最後でバグが取れずに2日悩んだ。こういうことだ→ キーワード検索で例えば「ライム」で検索をかければ「ライムライト」と「ジンライム」が検索されなければならないのに「ライムライト」しか出てこない。「イム」で検索すれば、両方出てくるはずなのにどちらも出てこない。しかし、「ジンライム」で検索すれば「ジンライム」はちゃんと出てくる。???POSTやGETでWHRE句の中身をページに受け渡しているが、特に文字化けはない。見た目は何も文字化けしていないのに検索結果が一部変になる。何をどういじくっても直らない。 ご飯を食べていても、風呂に入っていても、トイレの最中にも頭の中にそのバグが黒雲のごとく重苦しく広がった。そのうち夢にまで出てきて、うなされて起きてしまった。これは末期的だと思って、根本的な見直しをすることにした。 これまでShift-Jisのお世話になった。しかし、さよならだ。UTF-8にしよう。それしかない。ためしにやってみたら、完璧にできた。めんどくさいと思ってやらなかったが、UTF-8にしないと結局余計にめんどくさい。時代の流れには逆らえないというか、マイクロソフトもだんだん錆びてきたんじゃないかと思えてくる。 参考になったページ PHPの文字化けを本気で解決する ぎじゅっやさんhttp //hain.jp/index.php/tech-j/2007/02/13/p125 難しく考えると迷宮に迷い込む。このページの設定にしておけば、基本的に文字化けはない。 output_buffering = Off ; default_charset = EUC-JP mbstring.language = Japanese mbstring.encoding_translation = off mbstring.http_input = pass mbstring.http_output = pass mbstring.internal_encoding = EUC-JP mbstring.substitute_character = none mbstring.detect_order = SJIS,EUC-JP,JIS,UTF-8,ASCII 実際、PHP.iniではほとんど何もやらない方がいいということ。個々のページやプログラムで設定しろって事。そのことがよくわかるように書いてある。文字化けでググれば、ああしろこうしろといろいろ書いてあるが、結局何もせずに個々のページでUTF-8にすれば間違いないって事よ。実際そのとおりだ。今まで頭の中に立ち込めていた黒雲がうそのように引いていった。こんなことなら最初からUTF-8でやればよかった。 ど素人っていうのは恐いもの知らずで、オレ、ひどいことしてた。getのクエリー文字を日本語で普通に書いてた。でも、できたんだ。 getのクエリー文字列には日本語や空白を使ってはいけないらしいが、おれ、できてるよ。エンコードも何もせずに。 ichirann.php?where=recipi like %アイスコーヒー% てなぐあいで。 しかし、それはやはりまずいだろうということで、urlencode()を使うことにしたが、 $qstr = ?where=recipi like %アイスコーヒー% ; urlencode($qstr); でクエリ渡すと、西ヨーロッパ言語になって文字化け。はあ?おれ、全部UTF-8にしたよ。何? これで足掛け2日悩む。 どうもurlencode()は最初の文字が ? だといかんみたいで $qstr = where=recipi like %アイスコーヒー% ; のように?以外の文字から始まるようにすればすんなりいけるようだ。かんべんしてよ。 こういうくだらんことに早く気付けないのが素人。
https://w.atwiki.jp/ohden/pages/1006.html
rqlite https //github.com/rqlite/rqlite -- (s1n) 2021-02-16 10 18 21
https://w.atwiki.jp/500cc/pages/11.html
概要 『SはVする』と訳せる文を『S+Vの文型(第1文型)』という。 しかし実際の英文でSとVのみで構成された文というのは少ない。通常はS+Vの後に『時間や場所を表す副詞語句など』が続く。これらの副詞語句はS(主語)やV(動詞)などのように文の要素には含まれない。
https://w.atwiki.jp/kuni_memo/pages/212.html
前ページ次ページLibrary/工学 データベースに関するMemo 機械学習と融合することで、すごいシステムができそうな予感。 外部リンク:WEB情報 DB-ONLINE ミックさんの「リレーショナルデータベースの世界」 一般向け Eric and Jim, "7つのデータベース 7つの世界" データ構造 茨木 俊秀,"Cによるアルゴリズムとデータ構造" データベース理論・実装 李 華植,"データベースパフォーマンスアップの教科書 基本原理編" 奥野,"理論からまなぶデータベース実践入門" ミック,"SQL実践入門", 技術評論社 WEB+DB PRESS データベース徹底攻略, 技術評論社 朝井淳,"データベースの気持ちがわかるSQLはじめの一歩", 技術評論社 ジョー・セルコ,"プログラマのためのSQL, すべてを知り尽くしたいあなたに",(ミック監訳),翔泳社 五十嵐貴之,"SQLポケットリッファレンス" SQLite 西沢直木,"SQLite入門2版" 朝井淳,"SQLiteポケットリッファレンス" SQLite-Memo 理論的な話題Memo 探索木の理論〜情報理論 外部リンク:WEB情報 DB-ONLINE http //www.dbonline.jp/ ミックさんの「リレーショナルデータベースの世界」 http //www.geocities.jp/mickindex/index.html 一般向け Eric and Jim, "7つのデータベース 7つの世界" 面白そうだったけど、内容は、ある程度使った事のある上級者向けな感じ。 意義がわかりにくいから、読むのを止めた。読む時期が大切。 データ構造 茨木 俊秀,"Cによるアルゴリズムとデータ構造" 大学時代のテキスト。よくよく考えると、SQLなどのパッケージ的なものがなかった頃の本のようだ。 B+Treeアルゴリズムとかもう少し、詳しく書いて欲しかった。C言語での実装が書かれているが、今となっては、SQL文で、十分なので、実装の理解とか深めるにはいいかも。 データベース理論・実装 李 華植,"データベースパフォーマンスアップの教科書 基本原理編" 玄人向けなオーラが出てる本。 奥野,"理論からまなぶデータベース実践入門" 状況に応じて、どの処理を選べばよいかなどの示唆を与えてくれる。必ずしもindexを利用した検索が早いわけではないことを教えてくれる。道具は使いようが大切らしい。 ミック,"SQL実践入門", 技術評論社 WEB+DB PRESS データベース徹底攻略, 技術評論社 雑誌Sideの宣伝、引用はちょっとやめてほしいかな。ある程度わかってきて、さらにつっこんだ内容のとっかかりを知るにはいいかも。 朝井淳,"データベースの気持ちがわかるSQLはじめの一歩", 技術評論社 基本的な構文の使い方がまとめられている。再確認にはよい。 ジョー・セルコ,"プログラマのためのSQL, すべてを知り尽くしたいあなたに",(ミック監訳),翔泳社 バイブル的な本らしい。 五十嵐貴之,"SQLポケットリッファレンス" 複数のDB事情、違いがわかるのでよいかも。SQLの事典。 SQLite 西沢直木,"SQLite入門2版" SQLiteの入門本、基本的な使い方+各言語からどう使うかが入門的にまとめられている。 朝井淳,"SQLiteポケットリッファレンス" SQLiteの事典 SQLite-Memo DBの作成 sqlite3.exe ファイル名 テーブル作成 sqlite create table テーブル名(変数名 型, ...繰り返し... ); 各種制約 not null unique default primary key check テーブルスキーマ確認 sqlite .schema テンポラリテーブル作成 sqlite create temp table テーブル名(変数名 型, ...繰り返し... ); フィールドを追加 sqlite alter table テーブル名 add column 変数名 型; テーブル名変更 sqlite alter table 変更前テーブル名 rename to 変更後テーブル名 テーブル削除 sqlite drop table テーブル名; Vacuum sqlite VACUUM; ビュー sqlite create view view1 as select 要素 from テーブル名; sqlite select * from view1; データの追加 sqlite insert into テーブル名 values(, , , ...); データのインポート(カンマ区切りのtxt) sqlite .separator , sqlite .import ファイル名 テーブル名 データのエクスポート sqlite .mode csv sqlite .output ファイル.csv sqlite select * from テーブル名; 文字化するんは何か対策いるんかな? DBのリンク sqlite attach database データベース名 as 見なし名 DBのリンク解除 sqlite detach database 見なし名 データ削除 sqlite delete from テーブル名 where 条件 理論的な話題Memo 探索木の理論〜情報理論 情報理論との関連深い内容らしい。深遠なものを感じる。 情報理論関係の参考文献 [1]Han Te Sun, ... 情報と符号化の数理 [2]有本卓,...確率・情報・エントロピー DataBase関係の参考文献 [3]奥野,"理論からまなぶデータベース実践入門" B+については、ほとんどのSQL製品に実装されているそうな。 [4]茨木 俊秀,"Cによるアルゴリズムとデータ構造" 平衡探索木として触れている。
https://w.atwiki.jp/aiosciao/pages/27.html
SQLiteOpenHelperクラスを継承して、必要なメソッドなどをくっつけるとラク。 継承の際には、onCreateとonUpgradeメソッドはオーバーライド必須。 public class Helper extends SQLiteOpenHelper { private static final String DATABASE_NAME = "filename.db"; private static final int DATABASE_VERSION = 1000; /**! * とりあえずコンストラクタでDB準備 * @param context */ Helper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } /**! * DBを使い始める最初に呼ばれるらしいので、テーブルを構築する処理を行う */ @Override public void onCreate(SQLiteDatabase db) { String query =""; // テーブル query = "create table tbl_hoge(" + "int_id integer primary key autoincrement, " + "txt_word text" + ")"; db.execSQL(query); } /**! * DBのアップグレード * DBがすでにある状態でアプリを更新したときとかに呼ばれるらしい。 * 移行前後のDBバージョンに応じてテーブル操作を切り替える。 */ @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } }
https://w.atwiki.jp/m_shige1979/pages/1499.html
sqlite3のサンプル 手順 任意のディレクトリに移動 C \ cd C \pleiades_works\src\rails C \pleiades_works\src\rails アプリケーションを作成 C \pleiades_works\src\rails rails new testapp1 create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/images/rails.png create app/assets/javascripts/application.js create app/assets/stylesheets/application.css create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/views/layouts/application.html.erb create app/mailers/.gitkeep create app/models/.gitkeep create config create config/routes.rb create config/application.rb create config/environment.rb create config/environments create config/environments/development.rb create config/environments/production.rb create config/environments/test.rb create config/initializers create config/initializers/backtrace_silencers.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/secret_token.rb create config/initializers/session_store.rb create config/initializers/wrap_parameters.rb create config/locales create config/locales/en.yml create config/boot.rb create config/database.yml create db create db/seeds.rb create doc create doc/README_FOR_APP create lib create lib/tasks create lib/tasks/.gitkeep create lib/assets create lib/assets/.gitkeep create log create log/.gitkeep create public create public/404.html create public/422.html create public/500.html create public/favicon.ico create public/index.html create public/robots.txt create script create script/rails create test/fixtures create test/fixtures/.gitkeep create test/functional create test/functional/.gitkeep create test/integration create test/integration/.gitkeep create test/unit create test/unit/.gitkeep create test/performance/browsing_test.rb create test/test_helper.rb create tmp/cache create tmp/cache/assets create vendor/assets/javascripts create vendor/assets/javascripts/.gitkeep create vendor/assets/stylesheets create vendor/assets/stylesheets/.gitkeep create vendor/plugins create vendor/plugins/.gitkeep run bundle install Fetching gem metadata from https //rubygems.org/........... Fetching gem metadata from https //rubygems.org/.. Resolving dependencies... Installing rake (10.0.4) Using i18n (0.6.1) Using multi_json (1.7.3) Using activesupport (3.2.13) Using builder (3.0.4) Using activemodel (3.2.13) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.5) Using rack-cache (1.2) Using rack-test (0.6.2) Using hike (1.2.2) Using tilt (1.4.1) Using sprockets (2.2.2) Using actionpack (3.2.13) Using mime-types (1.23) Using polyglot (0.3.3) Using treetop (1.4.12) Using mail (2.5.4) Using actionmailer (3.2.13) Using arel (3.0.2) Using tzinfo (0.3.37) Using activerecord (3.2.13) Using activeresource (3.2.13) Using bundler (1.3.5) Installing coffee-script-source (1.6.2) Installing execjs (1.4.0) Installing coffee-script (2.2.0) Using rack-ssl (1.3.3) Installing json (1.8.0) Using rdoc (3.12.2) Using thor (0.18.1) Using railties (3.2.13) Installing coffee-rails (3.2.2) Installing jquery-rails (2.2.1) Using rails (3.2.13) Using sass (3.2.9) Installing sass-rails (3.2.6) Installing uglifier (2.1.0) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. C \pleiades_works\src\rails 作成したアプリケーションのフォルダより「Gemfile」のファイルを開き、sqlite3を編集 source https //rubygems.org gem rails , 3.2.13 # Bundle edge Rails instead # gem rails , git = git //github.com/rails/rails.git gem sqlite3 , = 1.3.1 # Gems used only for assets and not required # in production environments by default. group assets do gem sass-rails , ~ 3.2.3 gem coffee-rails , ~ 3.2.1 # See https //github.com/sstephenson/execjs#readme for more supported runtimes # gem therubyracer , platforms = ruby gem uglifier , = 1.0.3 end gem jquery-rails # To use ActiveModel has_secure_password # gem bcrypt-ruby , ~ 3.0.0 # To use Jbuilder templates for JSON # gem jbuilder # Use unicorn as the app server # gem unicorn # Deploy with Capistrano # gem capistrano # To use debugger # gem debugger コマンドプロンプトでアプリケーションのディレクトリに移動し、「rails server」を実行 C \pleiades_works\src\rails cd testapp1 C \pleiades_works\src\rails\testapp1 rails server = Booting WEBrick = Rails 3.2.13 application starting in development on http //0.0.0.0 3000 = Call with -d to detach = Ctrl-C to shutdown server [2013-05-18 11 56 28] INFO WEBrick 1.3.1 [2013-05-18 11 56 28] INFO ruby 2.0.0 (2013-02-24) [x64-mingw32] [2013-05-18 11 56 28] INFO WEBrick HTTPServer#start pid=3568 port=3000 http //localhost 3000/へアクセスして確認